﻿namespace LxCore
{
    public class TextWriterOnStream : ITextWriter
    {
        public TextWriterOnStream(StreamWriter streamWriter)
        {
            this.StreamWriter = streamWriter;
        }
        protected StreamWriter StreamWriter;
        public  void Write(string str)
        {
            StreamWriter.Write(str);
        }

        //protected override void WriteLine(string str)
        //{
        //    StreamWriter.WriteLine(str);
        //}

        //protected override void WriteLine()
        //{
        //    StreamWriter.WriteLine();
        //}
    }
}
